using System;

namespace FrontDisplay.NativeMethods
{
    public struct CopyDataStruct : IDisposable
    {
        public IntPtr dwData;
        public int cbData;
        public IntPtr lpData;

        public void Dispose()
        {
            if (lpData != IntPtr.Zero)
            {
                WinApi.LocalFree(lpData);
                lpData = IntPtr.Zero;
            }
        }
    }
}